home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.july.archive / 000099_crash!quasar.h…quasar!ekrieger_Wed, 28 Jul 93 21:47:39 PST.msg < prev    next >
Text File  |  1993-08-31  |  3KB  |  91 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Wed, 28 Jul 93 21:47:39 PST
  3. Received: from xs4all.hacktic.nl by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oLO5J-0000RVC; Wed, 28 Jul 93 19:51 PDT
  5. Received: from quasar.UUCP by xs4all.hacktic.nl with UUCP id AA11310
  6.   (5.65c/IDA-1.4.4 for bkhouse.cts.com!amigae); Thu, 29 Jul 1993 04:27:10 +0200
  7. Received: by utopia.hacktic.nl (1.65/waf)
  8.     via UUCP; Thu, 29 Jul 93 00:20:25 GMT
  9.     for bkhouse.cts.com!amigae
  10. Received: by quasar.hacktic.nl (V1.16/Amiga)
  11.     id AA008v8; Wed, 28 Jul 93 20:23:24 GMT
  12. Date: Wed, 28 Jul 93 20:23:24 GMT
  13. Message-Id: <9307282023.AA008v7@quasar.hacktic.nl>
  14. X-Mailer: //\\miga Electronic Mail (AmiElm 1.19)
  15. Organization: Private, Delft [NL]
  16. Reply-To: ekrieger@quasar.hacktic.nl
  17. From: ekrieger@quasar.hacktic.nl (Eric Krieger)
  18. To: amigae@bkhouse.cts.com
  19. Subject: How to code a BusyPointer?
  20.  
  21. I'm just started with Amiga E V2.1b, and i have some questions.
  22.  
  23. Could someone give me some hints how to use the function SetPointer()
  24. (from the intuition.library), especially with the Array of data for
  25. the BusyPointer?
  26.  
  27. I'm trying to "port" (ahum :) the example on page 275 of the
  28. RKRM-Libraries, with the waitPointer, but i haven't succeeded yet.
  29.  
  30. In short, this is the important part of the C-code:
  31.  
  32. /* Start of Part */
  33. UWORD   __chip waitPointer[] = {
  34.         0x0000, 0x0000,         /* Reserved, must be NULL */
  35.         0x0400, 0x07c0, 0x0000, 0x07c0,
  36.         0x0100, 0x0380, 0x0000, 0x07e0,
  37.         0x07c0, 0x1ff8, 0x1ff0, 0x3fec,
  38.         0x3ff8, 0x7fde, 0x3ff8, 0x7fbe,
  39.         0x7ffc, 0xff7f, 0x7efc, 0xffff,
  40.         0x7ffc, 0xffff, 0x3ff8, 0x7ffe,
  41.         0x3ff8, 0x7ffe, 0x1ff0, 0x3ffc,
  42.         0x07c0, 0x1ff8, 0x0000, 0x07e0,
  43.         0x0000, 0x0000,         /* Reserved, must be NULL */
  44. };
  45.  
  46. void SetWaitPointer (struct Window *window)
  47. {
  48.     SetPointer(window, waitPointer, 16L, 16L, -6L, 0);
  49. }
  50.  
  51. void processWaiting (struct Window *window)
  52. {
  53.     Delay(100);
  54.     SetWaitPointer(window);     /* Call Busy-Pointer */
  55.     Delay(400);
  56.     ClearPointer(window);       /* Restore normal Pointer */
  57. }
  58.  
  59. void main(int argc, char **argv)
  60. {
  61.     struct Window *win;
  62.  
  63.     if (IntuitionBase = OpenLibrary("intuition.library", 37L)) {
  64.         if (win = OpenWindowTags(NULL,
  65.                             WA_Left,        20,
  66.                             WA_Top,         10,
  67.                             WA_Width,       300,
  68.                             WA_Height,      90,
  69.                             WA_MaxWidth,    ~0,
  70.                             WA_MaxHeight,   ~0,
  71.                             TAG_DONE) )
  72.         {
  73.             processWaiting(win);
  74.             CloseWindow(win);   /* Close this Window */
  75.         }
  76.         CloseLibrary(IntuitionBase);
  77.     }
  78. }
  79. /* End of Part */
  80.  
  81.  
  82. Any example(s)/hint(s) will be appreciated to make this a usable E-source!
  83.  
  84. Thanks in advance!
  85.  
  86. --
  87.                       Q U A S A R : Last Point of Endless Time
  88.  _____________    __________________________________________________
  89. / Best regards,\ / The Netherlands (Europe)        FIDO: 2:285/1.10 \
  90. \ Eric Krieger / \ ekrieger@quasar.hacktic.nl  AmigaNET: 39:102/1.21/
  91.  ~~~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~